home *** CD-ROM | disk | FTP | other *** search
- # Quarterdeck Cen-Com SLIP & PPP script
- # Michael Bryant II 10/19/95
- # Modified 11/1/95 M. Bryant II
-
- STRING username
- STRING password
- STRING IPaddress
- STRING framing
-
- #TRACE ON
-
- SetTimeout 60
-
- # Get username from access method
- CfgGetValue "Username" username
- IF result = 0 THEN
- ABORT "Can't load Username from qdeck.ini"
- ENDIF
-
- # get password from access method
- CfgGetValue "Password" password
- IF result = 0 THEN
- ABORT "Can't load Password from qdeck.ini"
- ENDIF
-
- # get framing from access method
- CfgGetValue "Framing" framing
- IF result = 0 THEN
- ABORT "Can't load Framing (SLIP or PPP) from qdeck.ini"
- ENDIF
-
- DELAY 2
-
- CommWaitFor "sername"
- CommSend username
- CommSend "%r"
-
- CommWaitFor "assword"
- CommSend password
- CommSend "%r"
-
- IF framing = "MPSLIP" THEN
- CommWaitFor "command"
- CommSend "slip%r"
- CommWaitFor "our address is"
- CommReadIPaddr IPAddress # IP address should be next word
- CfgSetValue "IPAddress" IPaddress # store the IP address
- PRINT "IPAddress ="; IPAddress
- ELSE
- CommSend "ppp%r"
- ENDIF
-
- DELAY 2
-
- END
-